ACFWF\Models\Store_Credits\Calculate A

Total Complexity 59
Dependencies 13
Dependents 1
Total lines 689
Lines of code 292
Logical lines of code 144
Comment lines 305
Methods 22
Properties 5

Methods 22

Method Rating Maintainability Complexity Lines of code
calculate_credits_status_and_sources()
A
47 8 36
maybe_check_on_all_users_balance_expiry()
A
48 7 34
_get_entries_sum()
A
48 7 33
_get_all_entries()
S
52 4 25
calculate_store_credits_report_period_statistics()
S
54 4 20
get_customer_balance()
S
58 4 15
validate_user_last_active()
S
58 4 14
get_total_refunded_store_credits_discount_for_order()
S
54 2 23
_calculate_customer_balance()
S
57 2 19
get_last_active()
S
62 3 10
expire_user_credit_balance()
S
60 2 13
get_instance()
S
70 2 6
deactivate()
S
82 1 3
get_store_credit_expiry_days()
S
79 1 3
should_store_credits_expire()
S
78 1 3
get_decimal_precision()
S
79 1 3
__construct()
S
70 1 6
get_total_store_credits_discount_for_order()
S
67 1 9
delete_store_credits_cached_data()
S
75 1 4
calculate_store_credits_period_statistics()
S
71 1 5
calculate_unclaimed_store_credits()
S
71 1 5
run()
S
79 1 3